#pragma once

class StationInfo
{
public:
	StationInfo(const StationInfo& rhs);//for add new
	StationInfo(const CString& _StationPath,
				const CString& _StationName,
		        const CString& _SerialNumber,
				const CString& _UniformSerialNumber,
				const COleDateTime& _LastRecordTime,
				float value);
	~StationInfo(void);
	StationInfo& operator = ( const StationInfo& rhs);// for modify

	const CString& GetStationPath(void)const{return StationPath;}
	const CString& GetStationName(void)const{return StationName;}
	void  SetStationName(const CString& name);
	

	const CString& GetSerialNumber(void)const{return SerialNumber;}
	void  SetSerialNumber(const CString& sn);
	

	const CString& GetUniformNumber(void)const{return UniformSerialNumber;}
	void  SetUniformNumber(const CString& USN);
	

	const COleDateTime& GetLastRecordTime(void)const{return LastRecordTime;}
	void  SetLastRecordTime(const COleDateTime& time);

	

	float GetValue(void)const{return value;}
	void  SetValue(float rhs);

	void  SaveStationName();
	void  SaveSerialNumber();
	void  SaveUniformNumber();
	void  SaveLastRecordTime();
	void  SaveValue();

	
	
	
private:
	CString StationPath;
	CString StationName;
	CString SerialNumber;
	CString UniformSerialNumber;
	COleDateTime LastRecordTime;
	float   value;
};
